**# Bookmark #1 Setting

*Windows
global root  = "G:/Dropbox/Environmental Injustice/Empirical"
global rawdata = "$root/rawdata"
global workdata = "$root/workdata"
global results = "$root/results"
global outfile = "$root/outfile"

cd "$workdata"

**# Bookmark #1

use "$outfile/Table S20.dta",clear

*Asthma
reghdfe asthma lowedu5_post_notapwater lowedu5_post lowedu5_notapwater notapwater_post lowedu5 notapwater post,absorb(i.id i.province#i.year) cluster(i.province i.year)

outreg2 using "$results/Table S20.xls",replace ctitle(Asthma) ///
keep(lowedu5_post_notapwater lowedu5_post) ///
addtext(Individual FE, YES, ProvincebyYear FE, YES) ///
bdec(3) tdec(3) rdec(3)

*Respiratory Disease
reghdfe respiration lowedu5_post_notapwater lowedu5_post lowedu5_notapwater notapwater_post lowedu5 notapwater post,absorb(i.id i.province#i.year) cluster(i.province i.year)

outreg2 using "$results/Table S20.xls",append ctitle(Respiratory Disease) ///
keep(lowedu5_post_notapwater lowedu5_post) ///
addtext(Individual FE, YES, ProvincebyYear FE, YES) ///
bdec(3) tdec(3) rdec(3)

*Muscle Aches Pains
reghdfe joint lowedu5_post_notapwater lowedu5_post lowedu5_notapwater notapwater_post lowedu5 notapwater post,absorb(i.id i.province#i.year) cluster(i.province i.year)

outreg2 using "$results/Table S20.xls",append ctitle(Muscle Aches Pains) ///
keep(lowedu5_post_notapwater lowedu5_post) ///
addtext(Individual FE, YES, ProvincebyYear FE, YES) ///
bdec(3) tdec(3) rdec(3)

*ENT Disease
reghdfe ent lowedu5_post_notapwater lowedu5_post lowedu5_notapwater notapwater_post lowedu5 notapwater post,absorb(i.id i.province#i.year) cluster(i.province i.year)

outreg2 using "$results/Table S20.xls",append ctitle(ENT Disease) ///
keep(lowedu5_post_notapwater lowedu5_post) ///
addtext(Individual FE, YES, ProvincebyYear FE, YES) ///
bdec(3) tdec(3) rdec(3)